import React from 'react';

const Config = (Action) => {
    const Handlers = {
        createWithdrawal(vo) {
            Action.preCreateWithdrawal(vo);
        }
    }
    const columns = [

        {title: "门店名称", dataIndex: "shopName", width: 120},
        {title: "负责人名称", dataIndex: "shopManagerName", width: 120},
        {title: "累计提现", dataIndex: "totalWithdrawalAmount", width: 100},
        {title: "冻结中余额", dataIndex: "frozenAmount", width: 100},
        {title: "可提现余额", dataIndex: "withdrawableAmount", width: 100},
        {title: "提现中", dataIndex: "withdrawingAmount", width: 100},


        {
            title: '操作', dataIndex: 'id', width: 150, render(id, vo) {
                return <div>
                    <a onClick={Handlers.createWithdrawal.bind(this, vo)}>点击提现</a>
                </div>
            }
        },
    ];
    return {
        ...window.CONFIG.getPagerConfig(Action), columns
    };
};


export default Config;
